package com.share.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author sunxuejian
 * @date 2020/4/20
 */
public class MyFilter2 implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {

        System.out.println("------------去--------->doFilter2");

        //放行
        chain.doFilter(request, response);


        System.out.println("------------回--------->doFilter2");
    }

    @Override
    public void destroy() {

    }
}
